import request from '@/utils/request'

export default {
    //初始化数据展示
    reqGetPage(page,limit){
        return request.get(`/admin/product/baseTrademark/${page}/${limit}`)
    },
      // 保存
    save(data){
        if(data.id){
            return request.put(`/admin/product/baseTrademark/update`,data)
        }
        return request.post(`/admin/product/baseTrademark/save`,data)
    },
    //删除品牌
    deleteTrademark(id){
        return request.delete(`/admin/product/baseTrademark/remove/${id}`)
    },
    //获取品牌下拉
    getTrademarkSelect(){
        return request.get(`/admin/product/baseTrademark/getTrademarkList`)
    }
}